This free online XML formatter and lets you chose your indentation level and also lets you export to file ... XML Formatter Formats a XML string/file with your desired indentation level. The formatting rules are not configurable but it uses a per-element